package com.lijin.api;

import com.lijin.domain.dto.LotteryInformationDto;
import com.lijin.domain.enums.LotteryCodeEnums;
import com.lijin.domain.query.LotteryInformationQuery;
import com.lijin.domain.query.base.Page;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import java.util.List;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by gold-jx on 2017/12/8.
 */
@RequestMapping("lottery")
public interface LotteryInformationControllerApi {

    @ApiOperation(value = "【接口】 根据彩种编码查找彩种信息", notes = "List the lottery info by code", response = LotteryInformationDto.class, tags = {"lottery-info",})
    @ApiResponses(value = {@ApiResponse(code = 200, message = "Successful response", response = LotteryInformationDto.class)})
    @RequestMapping(value = "/findCode/", method = RequestMethod.GET)
    ResponseEntity<Page<LotteryInformationDto>> findInfoByCode(LotteryInformationQuery lotteryInformationQuery);


    @ApiOperation(value = "【接口】 查找所有彩种最新开奖信息", notes = "List the new lottery info ", response = LotteryInformationDto.class, tags = {"lottery-info",})
    @ApiResponses(value = {@ApiResponse(code = 200, message = "Successful response", response = LotteryInformationDto.class)})
    @RequestMapping(value = "/findNewInfo/", method = RequestMethod.GET)
    ResponseEntity<List<LotteryInformationDto>> findAllNewInfo();


    @ApiOperation(value = "【接口】 根据彩种编码及开奖期号查找彩种信息", notes = "List the lottery info by code", response = LotteryInformationDto.class, tags = {"lottery-info",})
    @ApiResponses(value = {@ApiResponse(code = 200, message = "Successful response", response = LotteryInformationDto.class)})
    @RequestMapping(value = "/findInfoByCodeAndExpect/", method = RequestMethod.GET)
    ResponseEntity<LotteryInformationDto> findInfoByCodeAndExpect(LotteryCodeEnums code, String expect);

}
